import { createStore } from 'vuex';
import userManageData from "@/store/moules/userManageData";
import teacherInfoData from "@/store/moules/teacherInfoData";
import studentInfoData from "@/store/moules/studentInfoData";

export default createStore({
  state: {
    // 是否登录
    token:"",
    // 用户角色
    roleId:null,
    // 登录信息
    logedInfo:null,
  },
  mutations: {
    retoken(){
      this.token="";
    }
  },
  actions: {
  },
  getters:{

  },
  modules: {
    userManageData:userManageData,
    teacherInfoData:teacherInfoData,
    studentInfoData:studentInfoData,
  }
})
